package com.atguigu.spzx.feign.user;

import com.atguigu.spzx.model.entity.user.UserAddress;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * ClassName: UserFeignClient
 * Package: com.atguigu.spzx.feign.user
 * Description:
 *
 * @Author 刘强
 * @Create 2024/7/18 13:16
 * @Version 1.0
 */
@FeignClient(value = "service-user")
public interface UserFeignClient {
    /**
     * 根据用户地址id获取用户地址
     * @param id
     * @return
     */
    @GetMapping("/api/user/userAddress/auth/getUserAddressById/{id}")
    public UserAddress getUserAddressById(@PathVariable Long id);
}
